home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
gnu
/
dld-3_23.lha
/
dld-3.2.3
/
test
/
general
/
get-sym.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-05-30
|
309b
|
16 lines
/* print the address and value of the specified symbols */
get_symbol (argc, argv)
int argc;
char *argv[];
{
register int *value;
register int i;
for (i=1; i < argc; i++) {
value = (int *) dld_get_symbol (argv[i]);
printf ("%d: address = 0x%x, value = 0x%x\n", i, value, *value);
}
}